In those languages, the horizontal axis still grows positively
towards the right, which means we need to invert left and right
as they come from scroll events, in order to have the expected
effect.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3842>
// Match physical direction
if (event.get_scroll_flags() & Clutter.ScrollFlags.INVERTED)
nSteps *= -1;
+ if (this.get_text_direction() === Clutter.TextDirection.RTL)
+ nSteps *= -1;
}
this.step(nSteps);